cmd: spi: check return value of strdup
authorPeng Fan <[email protected]>
Sun, 20 Mar 2016 13:21:36 +0000 (21:21 +0800)
committerTom Rini <[email protected]>
Sun, 27 Mar 2016 13:12:55 +0000 (09:12 -0400)
commit9caeb26c5446fbf835c88c0bfc470d66aaad82c6
treef8cfc39f4e037db1147ad018a4ef933024ef9164
parent3917c26909e4021c73073672865ec456eb51d640
cmd: spi: check return value of strdup

Check return value of strdup.

Signed-off-by: Peng Fan <[email protected]>
Cc: Przemyslaw Marczak <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Tom Rini <[email protected]>
cmd/spi.c